package com.handpay.nocardpay.baselibrary.pay.unipay.model.bean;
import android.os.Parcel;
import android.os.Parcelable;
import com.handpay.nocardpay.baselibrary.commbase.model.bean.BaseResponseBean;
import java.util.List;

/**
 * Created by lyang on 2017/6/13.
 */

public class HistoryBankCardListBean  extends BaseResponseBean implements Parcelable {
    /**
     * items : 5
     * list : [{"bankName":"平安银行","cardID":"305","cardNo":"**************8365"}]
     */

    private int items;
    private List<ListBean> list;

    public int getItems() {
        return items;
    }

    public void setItems(int items) {
        this.items = items;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable {
        /**
         * bankName : 平安银行
         * cardID : 305
         * cardNo : **************8365
         */

        private String bankName;
        private String cardID;
        private String cardNo;

        public String getBankName() {
            return bankName;
        }

        public void setBankName(String bankName) {
            this.bankName = bankName;
        }

        public String getCardID() {
            return cardID;
        }

        public void setCardID(String cardID) {
            this.cardID = cardID;
        }

        public String getCardNo() {
            return cardNo;
        }

        public void setCardNo(String cardNo) {
            this.cardNo = cardNo;
        }



        public ListBean() {
        }


        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.bankName);
            dest.writeString(this.cardID);
            dest.writeString(this.cardNo);
        }

        protected ListBean(Parcel in) {
            this.bankName = in.readString();
            this.cardID = in.readString();
            this.cardNo = in.readString();
        }

        public static final Parcelable.Creator<ListBean> CREATOR = new Parcelable.Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }


    public HistoryBankCardListBean() {
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.items);
        dest.writeTypedList(this.list);
    }

    protected HistoryBankCardListBean(Parcel in) {
        this.items = in.readInt();
        this.list = in.createTypedArrayList(ListBean.CREATOR);
    }

    public static final Parcelable.Creator<HistoryBankCardListBean> CREATOR = new Parcelable.Creator<HistoryBankCardListBean>() {
        @Override
        public HistoryBankCardListBean createFromParcel(Parcel source) {
            return new HistoryBankCardListBean(source);
        }

        @Override
        public HistoryBankCardListBean[] newArray(int size) {
            return new HistoryBankCardListBean[size];
        }
    };
}
